<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
use think\facade\Route;

Route::get('/','index/index');

Route::group('menu',function(){
    Route::get('/','menu/index');
    Route::get('create','menu/create');
    Route::get('child','menu/child');
    Route::post('save','menu/save');
    Route::get('edit','menu/edit');
    Route::post('update','menu/update');
    Route::post('switch','menu/switch');
    Route::get('delete','menu/delete');
});



Route::group('admin',function(){
    Route::get('/','admin/index');
    Route::get('create','admin/create');
    Route::get('me','admin/me');
    Route::post('change','admin/change');
    Route::post('save','admin/save');
    Route::get('edit','admin/edit');
    Route::post('update','admin/update');
    Route::post('switch','admin/switch');
    Route::get('delete','admin/delete');
    Route::get('logout','admin/logout');
});


Route::group('user',function(){
    Route::get('/','user/index');
    Route::get('create','user/create');
    Route::post('save','user/save');
    Route::get('edit','user/edit');
    Route::post('update','user/update');
    Route::post('switch','user/switch');
});

Route::group('login',function(){
    Route::get('/','login/form');
    Route::post('check','login/check');
});

//上传路由

Route::group('upload',function(){
    Route::post('/','upload/index');
    Route::post('layedit','upload/layedit');
});


//店铺路由

Route::group('store',function(){
    Route::get('/','store/index');
    Route::get('create','store/create');
    Route::post('save','store/save');
    Route::get('edit','store/edit');
    Route::post('update','store/update');
    Route::post('switch','store/switch');
    Route::get('delete','store/delete');
});

// 拼团商品路由


Route::group('role',function(){
    Route::get('/','role/index');
    Route::get('create','role/create');
    Route::post('save','role/save');
    Route::get('edit','role/edit');
    Route::get('permission','role/permission');
    Route::post('allow','role/allow');
    Route::post('update','role/update');
    Route::post('switch','role/switch');
    Route::get('delete','role/delete');
});









